{extend name="v1/layout/base"}
{block name="content"}
<style>
  .top-panel {
    border: 1px solid #eceff9;
    border-radius: 5px;
    text-align: center;
  }

  .top-panel>.layui-card-body {
    height: 60px;
  }

  .top-panel-number {
    line-height: 60px;
    font-size: 30px;
    width: 70% !important;
    border-right: 1px solid #eceff9;
  }

  .top-panel-tips {
    line-height: 30px;
    width: 30% !important;
    font-size: 12px
  }

  .layui-top-box {
    padding: 40px 20px 20px 20px;
    color: #fff
  }

  .panel {
    margin-bottom: 17px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
  }

  .panel-body {
    padding: 15px
  }

  .panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: inherit
  }

  .label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    margin-top: .3em;
  }

  .layui-red {
    color: red
  }

  .main_btn>p {
    height: 40px;
  }
</style>
<div class="layuimini-main">
  <!-- // 会员 -->
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-user"></i>会员统计</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">总</span>
                      <h5>会员总量</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_user}人</h1>
                      <small>当前平台会员总数</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">日</span>
                      <h5>今日新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_day_user}人</h1>
                      <small>今日新注册会员数量</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">周</span>
                      <h5>本周新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_week_user}人</h1>
                      <small>本周新注册会员数量</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">月</span>
                      <h5>当月新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_month_user}人</h1>
                      <small>当月新增注册会员数量</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="layui-col-md6">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-user-secret"></i>下单会员统计</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">总</span>
                      <h5>会员总量</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_buy_order_count}人</h1>
                      <small>当前平台下单会员总数</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">日</span>
                      <h5>今日新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_buy_day_order_count}人</h1>
                      <small>今日新下单会员数量</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">周</span>
                      <h5>本周新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_buy_week_order_count}人</h1>
                      <small>本周新增下单会员数量</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">月</span>
                      <h5>当月新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_buy_month_order_count}人</h1>
                      <small>当月新增下单会员数量</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- 订单 -->
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-user-secret"></i>订单统计</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">总</span>
                      <h5>订单总量</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_order}笔</h1>
                      <small>当前平台订单总数</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">日</span>
                      <h5>今日新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_day_order}笔</h1>
                      <small>今日新增订单总数</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">周</span>
                      <h5>本周新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_week_order}笔</h1>
                      <small>本周新订单总数</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">月</span>
                      <h5>当月新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_month_order}笔</h1>
                      <small>当月新增订单总数</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="layui-col-md6">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-warning icon"></i>售后订单统计</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">总</span>
                      <h5>总量</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_refund_order}</h1>
                      <small>当前平台售后订单总数</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">日</span>
                      <h5>今日新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_day_refund_order}</h1>
                      <small>今日新售后订单</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">周</span>
                      <h5>本周新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_week_refund_order}</h1>
                      <small>本周新增售后订单</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">月</span>
                      <h5>当月新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_month_refund_order}</h1>
                      <small>当月新增售后订单</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- 总收入 & 运费 -->
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md4">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-warning icon"></i>总收入</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">总</span>
                      <h5>总收入</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_price}元</h1>
                      <small>当前平台总收入</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">日</span>
                      <h5>今日新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_day_price}元</h1>
                      <small>今日新增收入</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">周</span>
                      <h5>本周新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_week_price}元</h1>
                      <small>本周新增收入</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">月</span>
                      <h5>当月新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_month_price}元</h1>
                      <small>当月新增收入</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="layui-col-md4">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-warning icon"></i>运费</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">总</span>
                      <h5>总收入</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_freight}元</h1>
                      <small>当前平台运费总收入</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">日</span>
                      <h5>今日新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_day_freight}元</h1>
                      <small>今日新增运费总收入</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">周</span>
                      <h5>本周新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_week_freight}元</h1>
                      <small>本周新增运费总收入</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">月</span>
                      <h5>当月新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_month_freight}元</h1>
                      <small>当月新增运费总收入</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="layui-col-md4">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-warning icon"></i>退款</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">总</span>
                      <h5>总退款</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_refund_price}元</h1>
                      <small>当前平台退款总额</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">日</span>
                      <h5>今日新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_day_refund_price}元</h1>
                      <small>今日新增退款总额</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">周</span>
                      <h5>本周新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_week_refund_price}元</h1>
                      <small>本周新增退款总额</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs6">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">月</span>
                      <h5>当月新增</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_month_refund_price}元</h1>
                      <small>当月新增退款总额</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>


  <div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
      <div class="layui-card">
        <div class="layui-card-header"><i class="fa fa-warning icon"></i>当日新增订单&&当年财务统计</div>
        <div class="layui-card-body">
          <div class="welcome-module">
            <div class="layui-row layui-col-space10">
              <div class="layui-col-xs2">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-blue">订</span>
                      <h5>待付款</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_wait_pay}单</h1>
                      <small>当日待付款</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs2">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-cyan">订</span>
                      <h5>待发货</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_wait_shipping}单</h1>
                      <small>当日待发货</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs2">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-orange">售</span>
                      <h5>待退款</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_wait_back}单</h1>
                      <small>当日待退款</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs2">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">售</span>
                      <h5>退款完成</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_over_back}单</h1>
                      <small>当日退款完成</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs2">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">财</span>
                      <h5>当年总收入</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_year_get}元</h1>
                      <small>当年总收入</small>
                    </div>
                  </div>
                </div>
              </div>
              <div class="layui-col-xs2">
                <div class="panel layui-bg-number">
                  <div class="panel-body">
                    <div class="panel-title">
                      <span class="label pull-right layui-bg-green">财</span>
                      <h5>当年总支出</h5>
                    </div>
                    <div class="panel-content">
                      <h1 class="no-margins">{$all_year_back_get}元</h1>
                      <small>当年总支出</small>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>


  <div class="layui-row layui-col-space15">
    <!-- 订单统计 -->
    <div class="layui-row layui-col-space15">
      <div class="layui-col-xs12 layui-col-md12">
        <div id="echarts-order" style="background-color:#ffffff;min-height:300px;padding: 10px"></div>
      </div>
    </div>
    <!-- 会员数据统计 -->
    <div class="layui-col-xs12 layui-col-md6">
      <div id="echarts-user" style="background-color:#ffffff;min-height:300px;padding: 10px"></div>
    </div>
    <!-- 财务统计 -->
    <div class="layui-col-xs12 layui-col-md6">
      <div id="echarts-finance" style="background-color:#ffffff;min-height:300px;padding: 10px"></div>
    </div>
  </div>
  <!-- 产品销量统计 -->
  <div class="layui-row layui-col-space15">
    <div class="layui-col-xs12 layui-col-md12">
      <div id="echarts-goods" style="background-color:#ffffff;min-height:800px;padding: 10px"></div>
    </div>
  </div>
</div>
<script>
  layui.use(['layer', 'echarts'], function() {
    var $ = layui.jquery,
      layer = layui.layer,
      echarts = layui.echarts;
    /**
     * 用户数据
     */
    var echartsUser = echarts.init(document.getElementById('echarts-user'), 'walden');
    // 写入数据
    var optionUser = {
      title: {
        text: '当月用户趋势图'
      },
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          type: 'cross',
          label: {
            backgroundColor: '#6a7985'
          }
        }
      }
    };
    const userUrl = '/{:config("manage.manage_name")}/{:config("manage.version")}/Index/getUserCount';
    https(userUrl, {}, 'post', 0, '').then(res => {
      if (res.result_code == 200) {
        echartsUser.setOption({
          legend: {
            data: res.resultData.name
          },
          toolbox: {
            feature: {
              saveAsImage: {}
            }
          },
          grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
          },
          xAxis: [{
            type: 'category',
            boundaryGap: false,
            data: res.resultData.dayarray
          }],
          yAxis: [{
            type: 'value',
            axisLabel: {formatter: '{value} 人'},
          }],
          series: res.resultData.dataArray
        })
      }
    })
    echartsUser.setOption(optionUser);
    // echarts 窗口缩放自适应
    window.onresize = function() {
      echartsUser.resize();
    }
    // 订单数据
    var echartsOrder = echarts.init(document.getElementById('echarts-order'), 'walden');
    // 写入数据
    var optionOrder = {
      title: {
        text: '当月订单趋势图'
      },
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          type: 'cross',
          label: {
            backgroundColor: '#6a7985'
          }
        }
      }
    };
    const orderUrl = '/{:config("manage.manage_name")}/{:config("manage.version")}/Index/getOrderCount';
    https(orderUrl, {}, 'post', 0, '').then(res => {
      if (res.result_code == 200) {
        echartsOrder.setOption({
          legend: {
            data: res.resultData.name
          },
          toolbox: {
            feature: {
              saveAsImage: {}
            }
          },
          grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
          },
          xAxis: [{
            type: 'category',
            boundaryGap: false,
            data: res.resultData.dayarray
          }],
          yAxis: [{
            type: 'value',
            axisLabel: {formatter: '{value} 单'},
          }],
          series: res.resultData.dataArray
        })
      }
    })
    echartsOrder.setOption(optionOrder);
    // echarts 窗口缩放自适应
    window.onresize = function() {
      echartsOrder.resize();
    }
    // 获取财务数据
    // 订单数据
    var echartsFinance = echarts.init(document.getElementById('echarts-finance'), 'walden');
    // 写入数据
    var optionFinance = {
      title: {
        text: '当月财务趋势图'
      },
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          type: 'cross',
          label: {
            backgroundColor: '#6a7985',
          }
        },
      }
    };
    const financeUrl = '/{:config("manage.manage_name")}/{:config("manage.version")}/Index/getFinanceCount';
    https(financeUrl, {}, 'post', 0, '').then(res => {
      if (res.result_code == 200) {
        echartsFinance.setOption({
          legend: {
            data: res.resultData.name
          },
          toolbox: {
            feature: {
              saveAsImage: {}
            }
          },
          grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
          },
          xAxis: [{
            type: 'category',
            boundaryGap: false,
            data: res.resultData.dayarray,
          }],
          yAxis: [{
            type: 'value',
            axisLabel: {formatter: '{value} 元'},
          }],
          series: res.resultData.dataArray
        })
      }
    })
    echartsFinance.setOption(optionFinance);
    // echarts 窗口缩放自适应
    window.onresize = function() {
      echartsFinance.resize();
    }
    /**
     * @xk 产品销量排行榜
     * @type {[type]}
     */
    var echartsGoods = echarts.init(document.getElementById('echarts-goods'), 'walden');
    var optionGoods = {
      title: {
        text: '产品销售额排行榜'
      },
      legend: {}
    }
    const allocationUrl = '/{:config("manage.manage_name")}/{:config("manage.version")}/Index/getGoodsCount';
    https(allocationUrl, {}, 'post', 0, '').then(res => {
      if (res.result_code == 200) {
        echartsGoods.setOption({
          dataset: {
            dimensions: res.resultData.name,
            source: res.resultData.dayarray
          },
          xAxis: {
            type: 'value',
            axisLabel: {formatter: '{value} 元'},
          },
          yAxis: {
            type: 'category'
          },
          series: res.resultData.sitypes
        })
      }
    });

    echartsGoods.setOption(optionGoods);
    // echarts 窗口缩放自适应
    window.onresize = function() {
      echartsGoods.resize();
    }




  });
</script>
{/block}
